Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2203] Implement Total Exception Handling #2211

Merged

Conversation

Rixxan
Copy link
Contributor

@Rixxan Rixxan commented Apr 26, 2024

Description

This PR adds a high-level error handler for critical errors that are not properly handled inside of EDMC. This handles elements that can lead to the program crashing on startup and includes errors where the program may look like it's not working at all.

This improves the user's experience and also encourages users to report errors to us on GitHub so that we can discover and fix errors more often - or at least direct the user on how to fix the error. Also includes the relevant translation information.

Additionally, simplifies the "An EDMarketConnector process was already running" popup to utilize tkinter.messagebox elements, which significantly reduces the amount of overhead needed to show the prompt and also makes the prompt more clear that it is an error.

Example Images

image
image

Type of change

  • New Feature

How Tested

Tested with both built and source versions of EDMC, with both intentionally broken and known working builds to generate errors.

Notes

Relies upon #2209 for the updated translation system. Until that PR is merged in, this will appear with a larger diff than it really has.

Resolves #2203

@Rixxan Rixxan added enhancement Translations code cleanup Cleaning up code python Pull requests that update Python code New User Experience ui User Interface Ready for Review PRs ready for review and merge labels Apr 26, 2024
@Rixxan Rixxan added this to the 5.11.0 milestone Apr 26, 2024
@Rixxan Rixxan self-assigned this Apr 26, 2024
@Rixxan Rixxan removed the Ready for Review PRs ready for review and merge label Apr 26, 2024
@Rixxan Rixxan marked this pull request as ready for review May 11, 2024 22:19
Copy link
Member

@C1701D C1701D left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Rixxan Rixxan merged commit af891c8 into EDCD:develop May 13, 2024
2 checks passed
@Rixxan Rixxan deleted the enhancement/2203/add-global-exception-handling branch May 13, 2024 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code cleanup Cleaning up code enhancement New User Experience python Pull requests that update Python code Translations ui User Interface
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

Catch all exceptions at top level for better UX and bug reporting.
2 participants